<?php
/**
 * Created by PhpStorm.
 * User: s80
 * Date: 2018/11/27
 * Time: 11:24
 */

namespace app\rest\model;

use think\Model;

class User extends Model
{
    // 设置table表名 包含前缀
    protected $table = 'hc_user';
    // 默认识别主键 ,亦可自己设置
    protected $pk = 'id';

    public function passmd5($pass)
    {
        return md5($pass);
    }

}